GBML manual / Using the editor

Playing your game inside Gbabel

Build & Play opens your finished game in the Play tab, on Gbabel's own screen - with pause, step, speed, sound, full screen, the Inspector beside it and a saved game that stays with your project, and moments you can go back to.

What it is for

When you press Build & Play, you want to see your game. The Play tab is where it appears: your finished game, right inside Gbabel, on Gbabel's own screen with Gbabel's own buttons. There is no other program to open, nothing to close afterwards, and nothing that can get in the way of Gbabel's keys. A Release Build plays here too.

How a game gets there

  1. Press Build & Play on the toolbar (or Ctrl+B, or F5). Or open the Build menu and choose Play last build.
  2. When the build is done, Gbabel switches to the Play tab by itself and the game starts.

The Play tab appears in the tab bar when your game starts. Its ✕ closes it: the game stops (your saved game is kept) and Gbabel goes back to the tab you were on. The next Build & Play opens it again.

Turning it off

Play inside Gbabel is on unless you turn it off. You will find it in two places:

Open ROM folder (in the Build menu) opens the folder that holds the game your last build made, with the game file picked out, so you can copy it to a flash cartridge or send it to someone. Before the first build it is grayed and says Build the game first.

When it is off, a finished build opens in the emulator program you chose in Setup, the way it did before.

When the game goes to your emulator program anyway

The controls

KeyWhat it does in the game
W A S DThe directional pad (W up, A left, S down, D right)
Up arrowA button
Down arrowB button
Left arrowL shoulder button
Right arrowR shoulder button
EnterStart
BackspaceSelect

Those are the usual keys for a Game Boy Advance game. Each console has its own controller, and the tab shows the one for the console your game is made for:

They are yours to change: the Controls button at the bottom of the tab opens a table with one row for each button of that console. Each console keeps its own keys, so changing one never changes another.

To change a key, click the key (or the Change button on its row). It says Press a key... - press the key you want and it is the new one, at once, even in a game that is running. Esc cancels.

Your keys are kept on this computer, for every project - they are yours, not part of any game - so they are still there the next time you open Gbabel.

Show Gamepad. The Show Gamepad button (beside Controls) puts the console's own buttons on the screen: on a Game Boy Advance the cross and L on the left, R, B and A on the right, Select and Start under the game; on a Genesis the cross on the left, X Y Z over A B C on the right, Mode and Start under the game; on a Game Boy Color or Game Boy the cross on the left, B and A on the right, Select and Start under the game. Click or touch them to play. Each finger is its own press, so Right and A together work with two thumbs, and a thumb in a corner of the cross presses two directions. The buttons are big enough for a phone; the choice is kept on this computer. The keyboard and a real gamepad keep working. Hide Gamepad takes them away.

Gamepad. If a gamepad is plugged in (press one of its buttons once so the browser can see it), the Controls table says Gamepad connected and gets a Gamepad column. A gamepad works straight away: the d-pad or the left stick, the right button for A, the bottom one for B, the shoulders for L and R, and its Start and Back buttons. Click a gamepad cell, then press the button you want, to change it the same way as a key.

The rule for keys. While the Play tab is showing and a game is loaded, these keys play the game, and every other one-key shortcut of the editor is turned off, so a stray key cannot change something behind your back (a P will not switch the Room Editor to its paint tool while you are looking at the game). These keep working: Ctrl shortcuts such as Ctrl+S and Ctrl+B, the F keys, Tab, Esc and Q. When a window is open on top of Gbabel (Setup, a question), the keys go to that window, not the game.

The buttons under the screen

ButtonWhat it does
Pause / PlayHolds the game, or lets it go on.
RestartStarts the game again from the very beginning. The saved game stays.
Step one frameOnly while the game is paused: plays exactly one frame and holds again. Press it again for the next one.
Speed1/2x (half speed, to see what happens), 1x (normal), 2x and 4x (fast forward; the sound is off).
Sound on / off and the sliderMutes the sound, or sets the volume. Gbabel remembers both.
Sharp / Fill the windowSharp blows the picture up by a whole number (2x, 3x, 4x ...) so every game pixel is exactly the same size, and picks the biggest one that fits. Fill the window makes the picture as big as it can be, any size. Neither one blurs the pixels.
Full screenShows the game on your whole screen. Esc leaves it.
Quick save / Quick loadKeep the game as it is in the Quick moment, and go back to it.
MomentsOpens the four moments and the Quick moment: save, go back, clear.
ControlsShows which keys play the game, and lets you change them (and a gamepad's buttons).
Erase saved gameEmpties the game's saved game and restarts the game. It asks first.

The top of the tab shows the game's name, whether it is a Development Build or a Release Build, the size of its screen, and Playing or Paused.

The build window beside the game

While the Play tab is showing, the build window (the one with the Build, Search and Inspector tabs) moves to the right edge, beside the game: the whole height of the tab, about 390 pixels wide, with the Inspector selected. The game takes all the room that is left, so it is as big as it can be, and the window never covers the buttons under the screen. The Inspector looks inside the game that is playing right here, and its Pause, Step one frame and Resume are the Play tab's own: use either, and both show the same thing.

Leaving the tab pauses the game

When you go to another tab, the game pauses. When you come back, it carries on. If you paused it, it stays paused when you come back - you decide when it moves again. The game also pauses while Gbabel is hidden behind other windows or another browser tab, and carries on when it is shown again.

Moments: go back to a time in your game

A moment keeps your whole game exactly as it is right now, so you can come back to it later. Press Moments under the screen: you get Moment 1 to Moment 4 and the Quick moment, each with a small picture and when it was saved ("2 minutes ago").

Moments are kept with your project, so they are still there after you close Gbabel and open the project again. Restart and Erase saved game leave them alone, and going back to a moment never changes the game's saved game by itself.

If you built your game again after saving a moment, the moment says from an older build. Going back to it asks you first, because it may not work with the changed game. If a moment cannot be loaded, Gbabel says so and the game carries on as it was.

When your game saves (see the Save group), the player keeps that saved game inside your project, a moment after the game writes it. Close Gbabel, open the project again, press Build & Play, and the saved game is still there. Erase saved game removes it. A copy of a project starts with nothing saved. The saved game is not part of your "unsaved changes": it is written as it happens.

Sharing your game as a web page

Export as web page (in the Play tab's bar, and in the Build menu) turns your game into one web page that anybody can play with nothing to install: your game, the player and the controls are all inside it.

  1. Press Export as web page. Gbabel looks at your last build. If it is a Development Build, or you changed the game since you built it, or there is no build yet, it tells you and offers to make a Release Build first. A Release Build is smaller and faster, and it is the one to give to players. You can also export the last build as it is.
  2. Pick where to save it. Gbabel suggests your game's name. (A browser without a save window just downloads the file.)
  3. Open the page in any browser to try it, or put it on a web site (for example a page on itch.io) to share it. It also works from a folder on your computer, and it never needs the internet.

The Export window has two boxes, and Gbabel remembers both for this game:

The page shows your game's name and a big Play button (a browser only allows sound after a click; Enter, Space or a gamepad button start it too). The keys on the page are W A S D for the directional pad, the Up, Down, Left and Right arrow keys for the A, B, L and R buttons, Backspace for Select and Enter for Start, and players can change them. Under the game are buttons for Pause / Play, Sound and volume, Sharp or Fill zoom, Full screen, Controls and Credits. Players can change the keys and the gamepad buttons in Controls, and their browser remembers the changes. A Game Boy or Game Boy Color game gets a page the right size for its screen.

Each player's saved game is kept in their own browser, under your game's name, so two games on the same web site never mix their saves, and a new version of your game keeps the saves of the old one. The Credits button shows the notices for the player (mGBA and the other free pieces inside it); leave them in.

Sharing your game as a Windows program

Export as a Windows program (next to Export as web page, in the Play tab's bar and in the Build menu) turns your game into one .exe file that a player on Windows can open with a double-click. It uses the same Export window as the web page: your credits, the picture time, and the offer to make a Release Build first.

  1. Press Export as a Windows program and answer the Export window the same way as for a web page.
  2. Pick where to save it. Gbabel suggests your game's name with .exe on the end.
  3. Send that one file to your players. It is a small player with your game inside it. It opens your game in a window of its own, with no browser bars. F11 or Alt+Enter switches full screen on and off, and Esc never closes the game.

What a player needs and what they will see:

If Export as a Windows program is dimmed, hover over it: it says why (no game is open, or this copy of Gbabel has no Windows player).

Sound

A browser only lets a page make sound after you have clicked or pressed a key on it. Pressing Build & Play counts. If the sound still has not started, the tab says Click the game for sound; click the screen once.

What changes when you open another project

Opening another project (or deleting this one) closes the game and clears the Play tab. The game belongs to the project it was built from.

If something looks wrong

What you seeWhat to do
The game opened in another programPlay inside Gbabel is off (above).
It says Gbabel's own player is not installedAsk whoever set Gbabel up on this computer to build the player. The game opened in your emulator program meanwhile.
No soundClick the game once, and check Sound on and the slider.
The keys do nothingClick the game screen once, and close any window open on top of Gbabel.
See also: Building and reading its problemsDevelopment Build and Release BuildThe Inspector - looking inside a playing gameSaving a game